package com.duck.inspection.domain.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class DuckCountDto {
        @NotNull(message = "鸭子数量不能为空")
        @Min(value = 1, message = "数量范围1-100")
        @Max(value = 100, message = "数量范围1-100")
        private Integer count;

        @NotNull(message = "年龄阶段不能为空")
        @Min(value = 1, message = "年龄范围1-9")
        @Max(value = 9, message = "年龄范围1-9")
        private Integer ageCode; // 1=1周龄 2=2周龄 3=3周龄 4=1个月 5=2个月...9=6+个月
}
